module.exports = {
  value: {
    type: [String, Number, Boolean],
    default: '',
    name: '输入值',
    filedType: 'value'
  },

  width: {
    type: String,
    default: '40',
    name: 'switch的宽度',
    filedType: 'string'
  },
  activetext: {
    type: String,
    default: '',
    name: '打开时的文字描述',
    filedType: 'string'
  },
  inactivetext: {
    type: String,
    default: '',
    name: ' 关闭时的文字描述',
    filedType: 'string'
  },

  switchtype: {
    type: Boolean,
    default: false,
    name: '切换为字串值',
    filedType: 'switch'
  },

  activevalue: {
    type: String,
    default: '',
    name: '打开时的值',
    filedType: 'string'
  },
  inactivevalue: {
    type: String,
    default: '',
    name: '关闭时的值',
    filedType: 'string'
  },

  activecolor: {
    type: String,
    default: '#409EFF',
    name: '打开时的背景色',
    filedType: 'color'
  },

  inactivecolor: {
    type: String,
    default: '#C0CCDA',
    name: '关闭时的背景色',
    filedType: 'color'
  },
  title: {
    type: String,
    default: '',
    name: '标题',
    filedType: 'string'
  },
  titleWeight: {
    type: String,
    default: '700',
    name: '标题粗细',
    filedType: 'string'
  },
  titleHeight: {
    type: String,
    default: '26px',
    name: '标题行高',
    filedType: 'string'
  },
  validValue: {
    type: Boolean,
    default: false,
    name: '数据校验',
    filedType: 'switch'
  },
  validRules: {
    type: Array,
    default () {
      return [
        { required: true, message: '请输入活动名称', trigger: 'blur' },
        { disabled: false, message: '禁用输入框' }
      ]
    },
    name: '校验规则',
    filedType: 'api',
    vif: {
      key: 'validValue',
      value: true
    }
  }
}
